﻿@{
    ViewBag.Title = "GetPassengerInfo";
}
@model G15_Agent.Models.ViewModels.TourBookingViewModel
<div>Số người lớn: @Model.soNguoiLon</div>
<div>Số trẻ em: @Model.soTreEm</div>
<table id="passenger-info">
    <thead>
        <tr>
            <td>STT</td>
            <td>Tên hành khách</td>
            <td>Ngày sinh</td>
            <td>Tuổi</td>
            <td>Hộ chiếu</td>
            <td>CMND</td>
        </tr>
    </thead>
    <tbody>
        @using (Html.BeginForm())
        {
            @Html.HiddenFor(m => m.tourID)
            @Html.HiddenFor(m => m.serviceID)
            @Html.HiddenFor(m => m.soNguoiLon)
            @Html.HiddenFor(m => m.soTreEm)

            for (int i = 0; i < Model.dsHanhKhach.Count; i++)
            {
                <tr>
                    <td>@Model.dsHanhKhach[i].maKhachHang</td>
                    <td>@Html.EditorFor(m => m.dsHanhKhach[i].hoTen)</td>
                    <td>@Html.EditorFor(m => m.dsHanhKhach[i].ngaySinh)</td>
                    <td>@Html.EditorFor(m => m.dsHanhKhach[i].tuoi)</td>
                    <td>@Html.EditorFor(m => m.dsHanhKhach[i].passport)</td>
                    <td>@Html.EditorFor(m => m.dsHanhKhach[i].cmnd)</td>
                </tr>
            }
            
            <input type="submit" value="Xác nhận" class="btn btn-primary"/>
        }
    </tbody>
</table>

